﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Peak.Core;
using Peak.Core.DataInterfaces;

namespace Peak.ApplicationServices
{
  public class StoryService : IStoryService
  {
    private readonly IStoryRepository _storyRepository;
    
    public StoryService(IStoryRepository storyRepository)
    {
      _storyRepository = storyRepository;    
    }

    public void Add(Story story)
    {
      _storyRepository.SaveOrUpdate(story);      
    }

    public void Update(Story story)
    {
      _storyRepository.SaveOrUpdate(story);
    }
  }
}
